//
//  OtherDetailFooterCell.swift
//  ImGuider X
//
//  Created by 陆涛 on 2018/9/29.
//  Copyright © 2018 imguider. All rights reserved.
//

import UIKit

class OtherDetailFooterCell: UITableViewCell {

    @IBOutlet weak var footerView: UIView!
    override func awakeFromNib() {
        super.awakeFromNib()
        
        footerView.backgroundColor = kThemeBgColor
        
        let roundedRect = CGRect(x: 0, y: 0, width: kScreenWidth, height: 40)
        let rounded = UIBezierPath(roundedRect: roundedRect, byRoundingCorners: [.bottomLeft,.bottomRight], cornerRadii: CGSize(width: 20, height: 20));
        
        let shape = CAShapeLayer()
        shape.path = rounded.cgPath
        footerView.layer.mask = shape
    }
}
